package com.lh.util.mapper;

import com.lh.util.dao.Vertex;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface vertexMapper {

    @Select("select * from tube.vertex")
    public List<Vertex> listAllVertex();

    @Insert("insert into tube.vertex(tube.vertex.latitude, tube.vertex.longitude, tube.vertex.title, tube.vertex.content) values(#{latitude}, #{longitude}, #{title}, #{content})")
    public int newCityInfo(Vertex vertex);
}
